import request from '@/utils/request'

// 查询接收消息列表
export function listReciveMessages(query) {
  return request({
    url: '/system/reciveMessages/list',
    method: 'get',
    params: query
  })
}

// 查询接收消息详细
export function getReciveMessages(id) {
  return request({
    url: '/system/reciveMessages/' + id,
    method: 'get'
  })
}

// 新增接收消息
export function addReciveMessages(data) {
  return request({
    url: '/system/reciveMessages',
    method: 'post',
    data: data
  })
}

// 修改接收消息
export function updateReciveMessages(data) {
  return request({
    url: '/system/reciveMessages',
    method: 'put',
    data: data
  })
}

// 删除接收消息
export function delReciveMessages(id) {
  return request({
    url: '/system/reciveMessages/' + id,
    method: 'delete'
  })
}
